/*
 * MoveHistory.cpp
 *
 *  Created on: Mar 30, 2011
 *      Author: cnwilson
 */

#include "../inc/MoveHistory.h"

	MoveHistory::MoveHistory(){

	}
	MoveHistory::~MoveHistory(){

	}
	void MoveHistory::addMove(Move turn){
		history.push(turn);
	}
	Move MoveHistory::undoMove(){
		Move undid(history.top());
		history.pop();
		return undid;
	}
	bool MoveHistory::isEmpty(){
		return history.empty();
	}
	void MoveHistory::reset(){
		history= stack<Move>();
	}
